export interface ILoginRequestData {
  /** admin 或 editor */
  username: string
  /** 密码 */
  password: string
  /** 验证码 */
  code: string
  /**uuid */
  uuid: string
}
export interface IGetuserInfo {
  nickName: string
  id: string
  name: string
  password: string
  role: string
  team: string
  department: string
  money: number
  maxOrder: number
  roleList?: string
}
export interface IGetRoleInfo {
  id: string
  name: string
  powerList: string
}
export type LoginCodeResponseData = IApiResponseData<string>
export type Info = IApiResponseData<string>

export type LoginResponseData = IApiResponseData<{ token: string }>

// export type UserInfoResponseData = IApiResponseData<{ user: object; role: object }>
export type UserInfoResponseData = IApiResponseData<{
  user: IGetuserInfo
  role: IGetRoleInfo
}>
